<template>
    <div class="app">
        <div class="hello">{{ hello }}</div>
        <p>时间：{{ date }}</p>
    </div>
</template>
<script>
export default {
    data() {
        return {
            hello: 'welcome to system manager.',
            date: new Date().toLocaleString(),
        }
    },
    // beforeRouteUpdate (to, from, next) {
    //     console.log(to, from, next);
    //     if(to.name == 'admin_default'){
    //         this.isAdminDefault = true;
    //     }else{
    //         this.isAdminDefault = false;
    //     }
    //     next();
    // },
    created() {},
    mounted() {},
    computed: {},
    watch: {},
    methods: {}
}
</script>
<style scoped>
.app {
    background-color: #f1f1f1;
    margin: auto;
    margin-top: 1.5rem;
    width: 900px;
    padding: 15px;
}
.hello {
    line-height: 50px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}
p {
    text-align: center;
    color: #ff5e57;
}
</style>